/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: 焦质晔
 * @Last Modified time: 2019-11-30 15:49:43
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 查询赠送礼品
export const queryGiveaway = params =>
  axios.get(`${SERVER.MEMBERS_CLUB}/giftGiveaway/queryGiveaway`, {
    params
  });

// 查询赠送礼品明细
export const queryGiveawayDetails = params =>
  axios.get(`${SERVER.MEMBERS_CLUB}/giftGiveaway/queryGiveawayDetails`, {
    params
  });

// 删除赠送礼品信息
export const deleteGiveaway = params =>
  axios.get(`${SERVER.MEMBERS_CLUB}/giftGiveaway/deleteGiveaway`, {
    params
  });

// 执行礼品赠送出库
export const executeGiftGiveawayStorage = params =>
  axios.get(`${SERVER.MEMBERS_CLUB}/giftGiveaway/executeGiftGiveawayStorage`, {
    params
  });

// 保存赠送礼品信息
export const saveGiveaway = params => axios.post(`${SERVER.MEMBERS_CLUB}/giftGiveaway/saveGiveaway`, params);

// 保存赠送礼品信息明细
export const saveGiveawayDetails = params => axios.post(`${SERVER.MEMBERS_CLUB}/giftGiveaway/saveGiveawayDetails`, params);

// 礼品赠送执行出库
export const executeGiveaway = params => axios.post(`${SERVER.MEMBERS_CLUB}/giftGiveaway/executeGiftGiveawayStorage`, params);

// 查询客户信息
export const customerChoose = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/searchVipDate/getOwnerDate`, {
    params
  });
